﻿using System;
using System.Collections.Generic;
using MoonSharp.Interpreter;

namespace Lua
{
	// Token: 0x020002EE RID: 750
	[MoonSharpUserData]
	public class Globals
	{
		// Token: 0x060011FC RID: 4604 RVA: 0x00080A78 File Offset: 0x0007EC78
		[MoonSharpHidden]
		public Globals()
		{
			this.globalTable = new Dictionary<DynValue, DynValue>();
		}

		// Token: 0x170002A1 RID: 673
		public DynValue this[DynValue idx]
		{
			get
			{
				if (this.globalTable.ContainsKey(idx))
				{
					return this.globalTable[idx];
				}
				return null;
			}
			set
			{
				this.globalTable[idx] = value;
			}
		}

		// Token: 0x040016C4 RID: 5828
		private Dictionary<DynValue, DynValue> globalTable;
	}
}
